Set Session variable in ASP.Net MVC using jQuery

In this tutorial, I will show you how to set a session variable in an ASP/NET MVC using jQuery. Now let get started by creating a model Country as shown below. The Model public class EmployeeModel public class CountryModel { public string countryName { get; set; } } The Controller: public ActionResult Index() { return... » read more

Manipulating Content on a Page

In this lesson, you will learn how to manipulate content and elements on a web page from simply replacing HTML element to completing removing tags and content from the web page. How do you manipulate content on a page using jQuery? Below are the most used jQuery functions that let you manipulate the content on... » read more

Chaining in jQuery

In this lesson, you will learn about a chaining concept in jQuery. This is undoubtedly the most powerful feature of jQuery which enables developers to write multiple lines of code in a single link. It connects multiples function, events on the element being selected. What is chaining in jquery? jQuery was created with one aim... » read more

Selecting elements in jQuery

In this lesson, you will learn about a compelling technique for selecting and interacting with web page elements – using CSS selectors. That means, if you are familiar with Cascading Style Sheets and know how to select a particular element to style it, you are on your half-way to learning jQuery. Basic Selectors A CSS... » read more

Understanding the Document Object Model

In this lesson, you will learn briefly about the Document Object model – the data representation of the web elements that comprise the page. We will look at what is DOM and how programming languages interact with the DOM to select elements to create animation and effects. What is DOM? When a web page is... » read more

Getting started with jQuery

In this lesson, you will learn how to include jQuery in your web pages to start working with. Getting jQuery jQuery is a very light-weight, CSS3 compatible JavaScript library. It comes in compressed and uncompressed versions of jQuery files. The uncompressed file is best for development or debugging purposes. Due to being so light-weight (30kB)... » read more

Introduction to jQuery

A brief introduction to jQuery This course teaches you the fundamental concepts of jQuery programming. To learn jQuery, you must have some basic understanding of HTML, CSS and JavaScript. With the help of this course, you will be able to go from zero to intermediate level of jQuery development. So without any further delay, let’s start... » read more

Retrieve Items from a LinkedList in Java

Here is another Java snippet that can help to enhance your program by using LinkedLists. The code below will retrieve all items from a linkedList and print them one by one to the console. class Main { public static void main(String[] args) { java.util.LinkedList<String> employees = new java.util.LinkedList<String>(); employees.add("Scott"); employees.add("Marie"); employees.add("Dun"); for (String string :... » read more

Create a Global Error Handler in C# for a Console Application

It’s easy enough to handle the exception using try/catch blocks. Some application takes benefit of the global exception handler. For Example, if you want to control standard exceptions, you can use your custom global exception handler to handle exceptions such as divided by zero, ArrayOutOfBoundException etc. These exceptions may occur when an unhandled exception is found.... » read more

WordPress 5.2 gets the much needed security features

WordPress version 5.2, called “Jaco” in honor of popular jazz bassist Jaco Pastorius, is available for download from the official website. The new version comes with some robust tools, and a number of functional improvements, but the most important updates are related to the security features including a modern cryptography library, site health section and... » read more

How to create a custom post type in WordPress

WordPress started as blogging software and got pretty famous in that. However, since WordPress 3.0, it has earned a reputation of a content management system (CMS) with the ability to handle almost any kind of website. WordPress can be used to create anything from an online portfolio to a multi-vendor E-Commerce platform. Creating a custom post... » read more

StringBuilder class constructors in Java

Below is a program that demonstrates the most used StringBuilder constructors in Java. public class Main { public static void main(String[] args) { StringBuilder sb1 = new StringBuilder(); StringBuilder sb2 = new StringBuilder(5); StringBuilder sb3 = new StringBuilder("Hello World"); System.out.printf("StringBuilder I = \"%s\"\n", sb1); System.out.printf("StringBuilder II = \"%s\"\n", sb2); System.out.printf("StringBuilder III = \"%s\"\n", sb3); }... » read more